package cn.xkshow.demo.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DemoUinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "demo_uinfo")
public class Uinfo implements java.io.Serializable {

	// Fields
	private Integer id;
	private String name;
	private Date dateline0;
	private Date dateline1;
	private String txt;

	// Constructors

	/** default constructor */
	public Uinfo() {
	}

	/** minimal constructor */
	public Uinfo(String name) {
		this.name = name;
	}

	/** full constructor */
	public Uinfo(String name, Date dateline0, Date dateline1, String txt) {
		this.name = name;
		this.dateline0 = dateline0;
		this.dateline1 = dateline1;
		this.txt = txt;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "dateline0", length = 10)
	public Date getDateline0() {
		return this.dateline0;
	}

	public void setDateline0(Date dateline0) {
		this.dateline0 = dateline0;
	}

	@Column(name = "dateline1", length = 19)
	public Date getDateline1() {
		return this.dateline1;
	}

	public void setDateline1(Date dateline1) {
		this.dateline1 = dateline1;
	}

	public String toString() {
		return "id=" + this.id + ",name=" + this.name + ",dateline0="
				+ this.dateline0 + ",dateline1=" + this.dateline1 + ",txt="
				+ this.txt;
	}

	public String getTxt() {
		return txt;
	}

	public void setTxt(String txt) {
		this.txt = txt;
	}

}